libs := System Graphics Storage
     
.PHONY: all $(libs)

all: $(libs)
	ar rs libse.a */*.o
	g++ -g -Wall -shared -o libse.so */*.o


$(libs):
	echo "Compiling "$@
	make -C $@

clean:
	for i in $(libs);do \
	cd $$i; \
	make clean; \
	cd -; \
	done
